package com.cnap.multiclouldmgmt.model.knowledge;

import com.cnap.multiclouldmgmt.model.alg.RequestForCause;

/**
 * 计算根因接口
 *
 * @author xc
 **/
public class CalCauseParam {
    private String alarmId;
    private String ruleId;
    private String svcId;
    private String indicatorName;

    /**
     * get
     *
     * @return SvcId
     */
    public String getSvcId() {
        return svcId;
    }

    /**
     * set
     *
     * @param svcId svcId
     */
    public void setSvcId(String svcId) {
        this.svcId = svcId;
    }

    /**
     * get
     *
     * @return IndicatorName
     */
    public String getIndicatorName() {
        return indicatorName;
    }

    /**
     * set
     *
     * @param indicatorName indicatorName
     */
    public void setIndicatorName(String indicatorName) {
        this.indicatorName = indicatorName;
    }

    /**
     * get
     *
     * @return RuleId
     */
    public String getRuleId() {
        return ruleId;
    }

    /**
     * set
     *
     * @param ruleId ruleId
     */
    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    /**
     * get
     *
     * @return AlarmId
     */
    public String getAlarmId() {
        return alarmId;
    }

    /**
     * set
     *
     * @param alarmId alarmId
     */
    public void setAlarmId(String alarmId) {
        this.alarmId = alarmId;
    }

    /**
     * 转换成请求参数
     *
     * @return 请求
     */
    public RequestForCause toRequest() {
        RequestForCause request = new RequestForCause();
        request.setSvcId(this.svcId);
        request.setAlarmType(this.indicatorName);
        return request;
    }
}
